package com.sxit.tdf.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxit.tdf.server.entity.FilePath;
import com.sxit.tdf.server.entity.bo.SimpleFilePathInfoBo;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author 橙子高
 * @since 2022-02-23
 */
public interface FilePathMapper extends BaseMapper<FilePath> {

  Boolean canDeleteFolder(Integer id);

  List<SimpleFilePathInfoBo> selectPathInfoList();

  List<SimpleFilePathInfoBo> selectPathInfoListByBucketId(Integer id);

  FilePath findFileByPathCode(String pathCode);

  Boolean canDeleteFolderFile(Integer id);

  Boolean canInsertFolder(String pathName);
}
